//首页
import home from '@/views/home/index.vue'
//观象台
import cmsBoard from '@/views/dataBoard/cmsBoard.vue'
import shopBoard from '@/views/dataBoard/shopBoard.vue'
import payBoard from '@/views/dataBoard/payBoard.vue'
import userBoard from '@/views/dataBoard/userBoard.vue'

//站点内容管理
import moduleCategory from '@/views/module/category.vue'
import moduleIndex from '@/views/module/list.vue'

//系统设置
import lessee from '../views/system/user/lessee.vue'
import resourcesIndex from '@/views/system/resources/index.vue'
import dictIndex from '@/views/system/dict/index.vue'
import themeIndex from '@/views/system/theme/index.vue'
import dataSource from '@/views/system/data/dataSource.vue'
import logIndex from '@/views/system/log/index.vue'

//动态路由
const dynamicRoutes = [
  {
    path: '/',
    name: '/',//注意name，如果想要默认访问主页，需要要设置/,否则跳转404
    component: home,
    meta: {
      title: '首页'
    }
  },
  {
    path: '/home',
    name: '/home',//注意name，如果想要默认访问主页，需要要设置/,否则跳转404
    component: home,
    meta: {
      title: '首页'
    }
  },

  //数据观象台*****************
  {
    path: '/dataBoard/cmsBoard',
    name: '/dataBoard/cmsBoard',
    component: cmsBoard,
    meta: {
      title: 'CMS系统'
    }
  },
  {
    path: '/dataBoard/shopBoard',
    name: '/dataBoard/shopBoard',
    component: shopBoard,
    meta: {
      title: '电商系统'
    }
  },
  {
    path: '/dataBoard/payBoard',
    name: '/dataBoard/payBoard',
    component: payBoard,
    meta: {
      title: '支付系统'
    }
  },
  {
    path: '/dataBoard/userBoard',
    name: '/dataBoard/userBoard',
    component: userBoard,
    meta: {
      title: '用户画像'
    }
  },

   //站点内容管理********************
   {
    path: '/module/category',
    name: '/module/category',
    component: moduleCategory,
    meta: {
      title: '模块分类'
    }
  },
  {
    path: '/module/list',
    name: '/module/list',
    component: moduleIndex,
    meta: {
      title: '模块列表'
    }
  },

  //系统设置********************
  {
    path: '/system/lessee',
    name: '/system/lessee',
    component: lessee,
    meta: {
      title: '租户管理'
    }
  },
  {
    path: '/system/resources',
    name: '/system/resources',
    component: resourcesIndex,
    meta: {
      title: '资源管理'
    }
  },
  {
    path: '/system/dict',
    name: '/system/dict',
    component: dictIndex,
    meta: {
      title: '字典管理'
    }
  },
  {
    path: '/system/theme',
    name: '/system/theme',
    component: themeIndex,
    meta: {
      title: '主题设置'
    }
  },
  {
    path: '/system/dataSource',
    name: '/system/dataSource',
    component: dataSource,
    meta: {
      title: '数据管理'
    }
  },
  {
    path: '/system/log',
    name: '/system/log',
    component: logIndex,
    meta: {
      title: '系统日志'
    }
  },
  
]

export default dynamicRoutes